package com.reguang.user.config;

import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "wechat")
public class WechatAccount {

	/**
	 * 小程序id
	 */
	private String appId;

	/**
	 * 小程序密钥
	 */
	private String appSecret;

	/**
	 * 商户号
	 */
	private String mchId;

	/**
	 * 商户密钥
	 */
	private String mchKey;

	/**
	 * 微信支付异步通知地址-订单
	 */
	private String notifyUrl;

	/**
	 * 微信支付异步通知地址-充值
	 */
	private String investNotifyUrl;

	/**
	 * 微信模版id
	 */
	private Map<String, String> templateId;

	/**
	 * 登录凭证校验
	 */
	private String loginUrl;

	/**
	 * 证书地址
	 */
	private String keyPath;

	/**
	 * accessToken
	 */
	private String accessTokenUrl;

	/**
	 * wxacode
	 */
	private String wxacodeUrl;

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getMchKey() {
		return mchKey;
	}

	public void setMchKey(String mchKey) {
		this.mchKey = mchKey;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getInvestNotifyUrl() {
		return investNotifyUrl;
	}

	public void setInvestNotifyUrl(String investNotifyUrl) {
		this.investNotifyUrl = investNotifyUrl;
	}

	public Map<String, String> getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Map<String, String> templateId) {
		this.templateId = templateId;
	}

	public String getLoginUrl() {
		return loginUrl;
	}

	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}

	public String getKeyPath() {
		return keyPath;
	}

	public void setKeyPath(String keyPath) {
		this.keyPath = keyPath;
	}

	public String getAccessTokenUrl() {
		return accessTokenUrl;
	}

	public void setAccessTokenUrl(String accessTokenUrl) {
		this.accessTokenUrl = accessTokenUrl;
	}

	public String getWxacodeUrl() {
		return wxacodeUrl;
	}

	public void setWxacodeUrl(String wxacodeUrl) {
		this.wxacodeUrl = wxacodeUrl;
	}

}
